package com.dingwen.treasure.mybatisplus.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dingwen.treasure.model.entity.mybatisplus.SysMenu;
import com.dingwen.treasure.model.vo.SysMenuVo;

import java.util.List;

/**
* @author dingwen
* @description 针对表【sys_menu(菜单表)】的数据库操作Service
* @createDate 2022-06-20 17:18:19
*/
public interface SysMenuService extends IService<SysMenu> {
    /**
     * 按用户id获取系统菜单
     *
     * @param userId 用户id
     * @return {@link List}<{@link SysMenu}>
     */
    List<SysMenu> getSysMenusByUserId(Long userId);


    /**
     * 获取树系统菜单
     *
     * @param userId 用户id
     * @return {@link List}<{@link SysMenuVo}>
     */
    List<SysMenuVo> getSysMenusForTree(Long userId);
}
